package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * FilterList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "filter_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = "keyword"))
public class FilterList implements java.io.Serializable {

	// Fields

	private FilterListId id;

	// Constructors

	/** default constructor */
	public FilterList() {
	}

	/** full constructor */
	public FilterList(FilterListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "keyword", column = @Column(name = "keyword", unique = true, nullable = false, length = 64)),
			@AttributeOverride(name = "reason", column = @Column(name = "reason", length = 100)),
			@AttributeOverride(name = "time", column = @Column(name = "time")),
			@AttributeOverride(name = "class_", column = @Column(name = "class", nullable = false)) })
	public FilterListId getId() {
		return this.id;
	}

	public void setId(FilterListId id) {
		this.id = id;
	}

}